 /* ========================================
   流程设计器属性面板样式文件
   Property Panel Styles
   ======================================== */

/* ========================================
   1. 属性面板基础样式
   ======================================== */
.designer-property-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: #fafbfc;
    border-left: 1px solid #eee;
    padding: 16px;
    overflow-y: auto;
    z-index: 20;
    transition: width 0.15s;
    box-sizing: border-box;
    min-width: 320px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
  }
  
  /* 面板调整器 */
  .panel-resizer {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 30;
    transition: background 0.2s;
  }
  
  .panel-resizer:hover {
    background: #e4e7ed44;
  }
  
  /* 面板底部 */
  .panel-footer {
    position: sticky;
    bottom: 0;
    background: #fafbfc;
    padding: 16px 0 0 0;
    display: flex;
    gap: 12px;
    border-top: 1px solid #eee;
    z-index: 2;
  }
  
  /* 关闭按钮 */
  .panel-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
    color: #909399;
    background: transparent;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
  }
  
  .panel-close-btn:hover {
    background: #f56c6c22;
    color: #f56c6c;
  }
  
  .close-x {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    color: inherit;
  }
  
  /* ========================================
     2. 主要信息块样式
     ======================================== */
  .main-info-block {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 18px 12px 12px 12px;
    margin-bottom: 18px;
  }
  
  .panel-title.main {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 8px;
  }
  
  .main-form .el-form-item__label {
    font-weight: bold;
    color: #606266;
  }
  
  .main-divider {
    margin: 18px 0 12px 0;
    border-top: 2px solid #e4e7ed;
  }
  
  /* ========================================
     3. 折叠面板样式
     ======================================== */
  .el-collapse {
    margin-bottom: 12px;
    background: #fafbfc;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    box-shadow: none;
  }
  
  .el-collapse-item__header {
    background: #fafbfc !important;
    color: #b1b3b8 !important;
    font-size: 15px !important;
    font-weight: 500;
    padding-left: 8px !important;
    min-height: 38px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
  }
  
  .el-collapse-item__arrow {
    color: #b1b3b8 !important;
    font-size: 16px !important;
  }
  
  .el-collapse-item__content {
    background: #fcfcfd;
    font-size: 13px;
    color: #a8abb2;
    padding: 10px 16px 10px 16px !important;
  }
  
  /* ========================================
     4. 子标题和表单样式
     ======================================== */
  .sub-title {
    font-size: 15px;
    color: #909399;
    font-weight: 500;
    margin-bottom: 8px;
  }
  
  .sub-form .el-form-item {
    margin-bottom: 10px;
  }
  
  .sub-form .el-form-item__label {
    color: #b1b3b8;
    font-size: 13px;
  }
  
  .sub-form .el-input, 
  .sub-form .el-input-number {
    font-size: 13px;
  }
  
  /* 表单标签样式 */
  .main-form .el-form-item__label,
  .sub-form .el-form-item__label {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 120px;
    padding-right: 8px;
    line-height: 32px;
  }
  
  /* 表单输入框样式 */
  .main-form .el-input,
  .sub-form .el-input,
  .sub-form .el-input-number {
    width: 100%;
  }
  
  /* ========================================
     5. 人员配置样式
     ======================================== */
  .assignee-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .assignee-values {
    margin-left: 8px;
    flex: 1;
  }
  
  .empty-selected {
    color: #bbb;
    margin-left: 8px;
  }
  
  .assignee-user-item {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 6px;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px #eee;
  }
  
  .assignee-user-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-right: 4px;
  }
  
  .assignee-user-account {
    color: #888;
    font-size: 12px;
    margin-right: 4px;
  }
  
  /* ========================================
     6. 夜间主题适配
     ======================================== */
  #htmlRoot[data-theme='dark'] .designer-property-panel {
    background: #2d2d2d !important;
    border-left-color: #444 !important;
  }
  
  #htmlRoot[data-theme='dark'] .panel-card :deep(.el-card__header) {
    background: #2d2d2d !important;
    border-bottom-color: #444 !important;
    color: #e0e0e0 !important;
  }
  
  #htmlRoot[data-theme='dark'] .panel-card :deep(.el-card__body) {
    background: #2d2d2d !important;
  }
  
  #htmlRoot[data-theme='dark'] .main-info-block {
    background: #3a3a3a !important;
    border: 1px solid #444 !important;
  }
  
  #htmlRoot[data-theme='dark'] .panel-title.main {
    color: #e0e0e0 !important;
  }
  
  #htmlRoot[data-theme='dark'] .main-form .el-form-item__label,
  #htmlRoot[data-theme='dark'] .sub-form .el-form-item__label {
    color: #e0e0e0 !important;
  }
  
  #htmlRoot[data-theme='dark'] .main-form .el-form-item__label {
    font-weight: bold !important;
    color: #e0e0e0 !important;
  }
  
  #htmlRoot[data-theme='dark'] .sub-form .el-form-item__label {
    color: #b1b3b8 !important;
  }
  
  #htmlRoot[data-theme='dark'] .main-divider {
    border-top-color: #444 !important;
  }
  
  /* ========================================
     7. Element Plus 夜间主题适配
     ======================================== */
  /* 输入框夜间主题 */
  #htmlRoot[data-theme='dark'] .el-input__wrapper {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    box-shadow: 0 0 0 1px #555 inset !important;
    transition: all 0.2s ease !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input__wrapper:hover {
    border-color: #666 !important;
    box-shadow: 0 0 0 1px #666 inset !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input__wrapper.is-focus {
    border-color: #409eff !important;
    box-shadow: 0 0 0 1px #409eff inset !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input__inner {
    background-color: transparent !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input__inner::placeholder {
    color: #999 !important;
  }
  
  /* 选择器夜间主题 */
  #htmlRoot[data-theme='dark'] .el-select .el-input__wrapper {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-select .el-input__inner {
    background-color: transparent !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-select .el-input__suffix {
    color: #ffffff !important;
  }
  
  /* 数字输入框夜间主题 */
  #htmlRoot[data-theme='dark'] .el-input-number .el-input__wrapper {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input-number .el-input__inner {
    background-color: transparent !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input-number .el-input-number__decrease,
  #htmlRoot[data-theme='dark'] .el-input-number .el-input-number__increase {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-input-number .el-input-number__decrease:hover,
  #htmlRoot[data-theme='dark'] .el-input-number .el-input-number__increase:hover {
    background-color: #3a3a3a !important;
    border-color: #666 !important;
  }
  
  /* 文本域夜间主题 */
  #htmlRoot[data-theme='dark'] .el-textarea__inner {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-textarea__inner::placeholder {
    color: #999 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-textarea__inner:focus {
    border-color: #409eff !important;
  }
  
  /* 单选框夜间主题 */
  #htmlRoot[data-theme='dark'] .el-radio__input.is-checked .el-radio__inner {
    background-color: #409eff !important;
    border-color: #409eff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-radio__inner {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-radio__label {
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-radio-group {
    color: #ffffff !important;
  }
  
  /* 开关夜间主题 */
  #htmlRoot[data-theme='dark'] .el-switch__core {
    background-color: #555 !important;
    border-color: #555 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-switch.is-checked .el-switch__core {
    background-color: #409eff !important;
    border-color: #409eff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-switch__action {
    background-color: #ffffff !important;
  }
  
  /* 颜色选择器夜间主题 */
  #htmlRoot[data-theme='dark'] .el-color-picker__trigger {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-color-picker__color {
    border-color: #555 !important;
  }
  
  /* 按钮夜间主题 */
  #htmlRoot[data-theme='dark'] .el-button {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-button:hover {
    background-color: #3a3a3a !important;
    border-color: #666 !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-button--primary {
    background-color: #409eff !important;
    border-color: #409eff !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-button--primary:hover {
    background-color: #66b1ff !important;
    border-color: #66b1ff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-button--danger {
    background-color: #f56c6c !important;
    border-color: #f56c6c !important;
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .el-button--danger:hover {
    background-color: #f78989 !important;
    border-color: #f78989 !important;
  }
  
  /* 标签夜间主题 */
  #htmlRoot[data-theme='dark'] .el-tag {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #ffffff !important;
  }
  
  /* 头像夜间主题 */
  #htmlRoot[data-theme='dark'] .el-avatar {
    background-color: #2a2a2a !important;
  }
  
  /* 人员配置夜间主题 */
  #htmlRoot[data-theme='dark'] .empty-selected {
    color: #999 !important;
  }
  
  #htmlRoot[data-theme='dark'] .assignee-user-item {
    background: #2a2a2a !important;
    box-shadow: 0 1px 2px #222 !important;
  }
  
  #htmlRoot[data-theme='dark'] .assignee-user-name {
    color: #ffffff !important;
  }
  
  #htmlRoot[data-theme='dark'] .assignee-user-account {
    color: #999 !important;
  }